﻿using System.IO;
using DoDoveFramework;
using JetBrains.Annotations;
using UnityEngine;

namespace Script
{
    public class ResKit : Singleton<ResKit>
    {
        public void InitResKit()
        {
 
        }

        protected override void Initialize()
        {
        }

        public T GetResByResName<T>([CanBeNull] string path, string resName) where T : Object
        {
            if (path == null) return Resources.Load<T>(resName);

            return Resources.Load<T>(Path.Combine(path, resName));
        }
    }
}